<script language="javascript"> 
function delItem(id, type){
	if(confirm('Are you sure to delete this Configuration Item?'))
		document.location.href = SITE_URL + 'admin/configurations.configurations.delete/' + id + '/' + type;
}
function add_new(){
	common.go_page('admin/configurations.configurations.add_new/<?=$type?>');
}
</script>
<form method="post" action="<?=site_url('admin/configurations.configurations.delete_all')?>" name="frm_configurations" id="frm_configurations">
<input type="hidden" name="act" id="act" value="delete_all" />
<input type="hidden" name="type" id="type" value="<?=$type?>" />

<?if(get_flash_message()){?><center><div class="messageBox"><?=get_flash_message()?></div></center><?}?>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="text">
  <tr align="center" id="listTableHeader">
  	<td width="3%"><input type="checkbox" onclick="common.mark_all_rows('uid[]', this.checked)" /></td>
    <!--<td width="5%">{param_idTXT}</td>-->    
    <td width="30%">Value</td>
    <td>Description</td>    
    <td width="15%">Action</td>
  </tr>
<?$i=1;foreach($data as $item){?>
  <tr class="row<?=($i==1)?'1':'2'?>">        
  	<td align="center" valign="center"><input type="checkbox" name="uid[]" value="<?=$item->param_id?>" /></td>
    <!--<td><?=$item->param_id?></td>-->    
    <td><?=word_limiter(s($item->value), 40)?></td>
    <td align="center"><?=h($item->description)?></td>
    
    <td>
        <a href="<?=site_url('admin/configurations.configurations.edit_contact/'.$item->param_id . '/' . $type)?>"><div class="edit_icon">|</div></a>
        <a href="#" onclick="delItem(<?=$item->param_id?>, <?=$type?>);"><div class="delete_icon"></div></a>
    </td>
  <tr>
<?$i=-$i;}?>
  <tr>
    <td colspan="6">
      <table class="adminlist" border="0" cellpadding="0" cellpadding="0" width="100%" class="PagingTable">
        <tr>
          <td class="pageCounter" width="100%" align="center">
            {paging}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</form>
